package call_reference
//把函数作为参数传递
fun main(args: Array<String>) {
    val number = listOf(1,2,3)
    println(number.filter(::isAdd))
}

fun isAdd(x:Int) = x%2!=0